<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Livox SDK API: spdlog::details::thread_pool Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="1.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Livox SDK API
   &#160;<span id="projectnumber">V2.1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classspdlog_1_1details_1_1thread__pool.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classspdlog_1_1details_1_1thread__pool-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">spdlog::details::thread_pool Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="thread__pool_8h_source.html">thread_pool.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a997d954a51e8fa8aa92071d1a9c08536"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classspdlog_1_1details_1_1thread__pool.html#a997d954a51e8fa8aa92071d1a9c08536">item_type</a> = <a class="el" href="structspdlog_1_1details_1_1async__msg.html">async_msg</a></td></tr>
<tr class="separator:a997d954a51e8fa8aa92071d1a9c08536"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77d633d56b0b5e1fe37965faa4642df5"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classspdlog_1_1details_1_1thread__pool.html#a77d633d56b0b5e1fe37965faa4642df5">q_type</a> = <a class="el" href="classspdlog_1_1details_1_1mpmc__blocking__queue.html">details::mpmc_blocking_queue</a>&lt; <a class="el" href="classspdlog_1_1details_1_1thread__pool.html#a997d954a51e8fa8aa92071d1a9c08536">item_type</a> &gt;</td></tr>
<tr class="separator:a77d633d56b0b5e1fe37965faa4642df5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2ac821eb936f7373cc51949fb05e841c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classspdlog_1_1details_1_1thread__pool.html#a2ac821eb936f7373cc51949fb05e841c">thread_pool</a> (size_t q_max_items, size_t threads_n)</td></tr>
<tr class="separator:a2ac821eb936f7373cc51949fb05e841c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a27e41d821a8aa8137bc0e64df031ccd4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classspdlog_1_1details_1_1thread__pool.html#a27e41d821a8aa8137bc0e64df031ccd4">~thread_pool</a> ()</td></tr>
<tr class="separator:a27e41d821a8aa8137bc0e64df031ccd4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e8f86d40f81af1d22a21ee0368287b2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classspdlog_1_1details_1_1thread__pool.html#a5e8f86d40f81af1d22a21ee0368287b2">thread_pool</a> (const <a class="el" href="classspdlog_1_1details_1_1thread__pool.html">thread_pool</a> &amp;)=delete</td></tr>
<tr class="separator:a5e8f86d40f81af1d22a21ee0368287b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a62f3ab1474d69cd1e25143664e856d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classspdlog_1_1details_1_1thread__pool.html">thread_pool</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classspdlog_1_1details_1_1thread__pool.html#a1a62f3ab1474d69cd1e25143664e856d">operator=</a> (<a class="el" href="classspdlog_1_1details_1_1thread__pool.html">thread_pool</a> &amp;&amp;)=delete</td></tr>
<tr class="separator:a1a62f3ab1474d69cd1e25143664e856d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70cc09729d82174d84640eaface150e0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classspdlog_1_1details_1_1thread__pool.html#a70cc09729d82174d84640eaface150e0">post_log</a> (<a class="el" href="namespacespdlog_1_1details.html#a9b6989c16b6150f7e4658ea2aee01bc2">async_logger_ptr</a> &amp;&amp;worker_ptr, <a class="el" href="structspdlog_1_1details_1_1log__msg.html">details::log_msg</a> &amp;msg, <a class="el" href="namespacespdlog.html#a42e109759a11c9514d3f6313a7709852">async_overflow_policy</a> overflow_policy)</td></tr>
<tr class="separator:a70cc09729d82174d84640eaface150e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa851092603e816f78dd81bb980232048"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classspdlog_1_1details_1_1thread__pool.html#aa851092603e816f78dd81bb980232048">post_flush</a> (<a class="el" href="namespacespdlog_1_1details.html#a9b6989c16b6150f7e4658ea2aee01bc2">async_logger_ptr</a> &amp;&amp;worker_ptr, <a class="el" href="namespacespdlog.html#a42e109759a11c9514d3f6313a7709852">async_overflow_policy</a> overflow_policy)</td></tr>
<tr class="separator:aa851092603e816f78dd81bb980232048"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc34920f65797d8f54986dc1894a8804"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classspdlog_1_1details_1_1thread__pool.html#adc34920f65797d8f54986dc1894a8804">overrun_counter</a> ()</td></tr>
<tr class="separator:adc34920f65797d8f54986dc1894a8804"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="thread__pool_8h_source.html#l00118">118</a> of file <a class="el" href="thread__pool_8h_source.html">thread_pool.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a class="anchor" id="a997d954a51e8fa8aa92071d1a9c08536"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="classspdlog_1_1details_1_1thread__pool.html#a997d954a51e8fa8aa92071d1a9c08536">spdlog::details::thread_pool::item_type</a> =  <a class="el" href="structspdlog_1_1details_1_1async__msg.html">async_msg</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="thread__pool_8h_source.html#l00121">121</a> of file <a class="el" href="thread__pool_8h_source.html">thread_pool.h</a>.</p>

</div>
</div>
<a class="anchor" id="a77d633d56b0b5e1fe37965faa4642df5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="classspdlog_1_1details_1_1thread__pool.html#a77d633d56b0b5e1fe37965faa4642df5">spdlog::details::thread_pool::q_type</a> =  <a class="el" href="classspdlog_1_1details_1_1mpmc__blocking__queue.html">details::mpmc_blocking_queue</a>&lt;<a class="el" href="classspdlog_1_1details_1_1thread__pool.html#a997d954a51e8fa8aa92071d1a9c08536">item_type</a>&gt;</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="thread__pool_8h_source.html#l00122">122</a> of file <a class="el" href="thread__pool_8h_source.html">thread_pool.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a2ac821eb936f7373cc51949fb05e841c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">spdlog::details::thread_pool::thread_pool </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>q_max_items</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>threads_n</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="thread__pool_8h_source.html#l00124">124</a> of file <a class="el" href="thread__pool_8h_source.html">thread_pool.h</a>.</p>

</div>
</div>
<a class="anchor" id="a27e41d821a8aa8137bc0e64df031ccd4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">spdlog::details::thread_pool::~thread_pool </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="thread__pool_8h_source.html#l00141">141</a> of file <a class="el" href="thread__pool_8h_source.html">thread_pool.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5e8f86d40f81af1d22a21ee0368287b2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">spdlog::details::thread_pool::thread_pool </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classspdlog_1_1details_1_1thread__pool.html">thread_pool</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a1a62f3ab1474d69cd1e25143664e856d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classspdlog_1_1details_1_1thread__pool.html">thread_pool</a>&amp; spdlog::details::thread_pool::operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classspdlog_1_1details_1_1thread__pool.html">thread_pool</a> &amp;&amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="adc34920f65797d8f54986dc1894a8804"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">size_t spdlog::details::thread_pool::overrun_counter </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="thread__pool_8h_source.html#l00174">174</a> of file <a class="el" href="thread__pool_8h_source.html">thread_pool.h</a>.</p>

</div>
</div>
<a class="anchor" id="aa851092603e816f78dd81bb980232048"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void spdlog::details::thread_pool::post_flush </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacespdlog_1_1details.html#a9b6989c16b6150f7e4658ea2aee01bc2">async_logger_ptr</a> &amp;&amp;&#160;</td>
          <td class="paramname"><em>worker_ptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacespdlog.html#a42e109759a11c9514d3f6313a7709852">async_overflow_policy</a>&#160;</td>
          <td class="paramname"><em>overflow_policy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="thread__pool_8h_source.html#l00169">169</a> of file <a class="el" href="thread__pool_8h_source.html">thread_pool.h</a>.</p>

</div>
</div>
<a class="anchor" id="a70cc09729d82174d84640eaface150e0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void spdlog::details::thread_pool::post_log </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacespdlog_1_1details.html#a9b6989c16b6150f7e4658ea2aee01bc2">async_logger_ptr</a> &amp;&amp;&#160;</td>
          <td class="paramname"><em>worker_ptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structspdlog_1_1details_1_1log__msg.html">details::log_msg</a> &amp;&#160;</td>
          <td class="paramname"><em>msg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacespdlog.html#a42e109759a11c9514d3f6313a7709852">async_overflow_policy</a>&#160;</td>
          <td class="paramname"><em>overflow_policy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="thread__pool_8h_source.html#l00163">163</a> of file <a class="el" href="thread__pool_8h_source.html">thread_pool.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>sdk_core/include/third_party/spdlog/spdlog/details/<a class="el" href="thread__pool_8h_source.html">thread_pool.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacespdlog.html">spdlog</a></li><li class="navelem"><a class="el" href="namespacespdlog_1_1details.html">details</a></li><li class="navelem"><a class="el" href="classspdlog_1_1details_1_1thread__pool.html">thread_pool</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
